import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean, IsNotEmpty, IsString } from 'class-validator';
export class CreatePageDto {
  id: number;

  @ApiProperty()
  @IsNotEmpty()
  @IsString()
  name: string;

  @ApiProperty()
  nameBackground: string;

  @ApiProperty()
  nameColor: string;

  @ApiProperty()
  title: string;

  @ApiProperty()
  subtitle: string;

  @ApiProperty()
  pv: string;

  @ApiProperty()
  uv: string;

  @ApiProperty()
  components: string;

  @ApiProperty()
  shareImg: string;

  @ApiProperty()
  shareImgList: string;

  @ApiProperty()
  qrImg: string;

  @ApiProperty()
  qrImgList: string;

  @ApiProperty()
  @IsBoolean()
  status: boolean;

  @ApiProperty()
  @IsBoolean()
  getPhone: boolean;

  @ApiProperty()
  createdAt: Date;

  updatedAt: Date;
}
